Also check the default handler when deciding whether to emit the paginate
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 Apr 2007 06:34:12 +0000 (06:34 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 29 Apr 2007 06:34:12 +0000 (06:34 +0000)
2007-04-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintoperation.c (print_pages_idle): Also check
        the default handler when deciding whether to emit the
        paginate signal.  (#345345, Yevgen Muntyan)

svn path=/trunk/; revision=17698

ChangeLog
gtk/gtkprintoperation.c

index ac54424caf5eb2ae72a09657eb3a7b1ccfc4173b..85c05ff13c36c181485bfac2edf345ca3d463e2b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-29  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkprintoperation.c (print_pages_idle): Also check
+       the default handler when deciding whether to emit the
+       paginate signal.  (#345345, Yevgen Muntyan)
+
 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkprintoperation.h: Add a new error code
index c04abbc4313664e96f4501d12beb5a1b6376d84e..9d12054ae471d8aad6ef0a3aab09251276079684 100644 (file)
@@ -2050,7 +2050,8 @@ print_pages_idle (gpointer user_data)
          goto out;
        }
       
-      if (g_signal_has_handler_pending (data->op, signals[PAGINATE], 0, FALSE))
+      if (GTK_PRINT_OPERATION_GET_CLASS (data->op)->paginage != NULL ||
+          g_signal_has_handler_pending (data->op, signals[PAGINATE], 0, FALSE))
        {
          gboolean paginated = FALSE;